package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Shield;
import com.net.tkc.pro.impl.ShieldImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShieldService {
    @Resource
    ShieldImpl shieldImpl;

    public int addShield(Shield Shield) {
        return shieldImpl.addShield(Shield);
    }

    public int upShield(int state, int id) {
        return shieldImpl.upShield(state, id);
    }

    public List<Shield> getUserToList(int userfrom) {
        return shieldImpl.getUserToList(userfrom);
    }
}
